package com.example.demo.threadTest;

/**
 * @author leiliang
 * @version 1.0
 * @Description
 * @date 2022/8/12 15:07
 */
public class ThreadImplRunnable implements Runnable  {


    /**
     * 线程名称
     */
    private String threadName;

    /**
     * 构造函数
     * @param name
     */
    public ThreadImplRunnable(String name) {
        this.threadName = name;
    }

    @Override
    public void run() {
        System.out.println(threadName);
    }
}
